const { Switch } = require("../lib/types");

module.exports = {
    name: "ngx_http_memcached_module",
    map: {
        memcached_bind: [[Switch, String], , ["http", "server", "location"]],
        memcached_buffer_size: [String, "4k|8k", ["http", "server", "location"]],
        memcached_connect_timeout: [String, "60s", ["http", "server", "location"]],
        memcached_force_ranges: [Switch, false, ["http", "server", "location"]],
        memcached_gzip_flag: [String, , ["http", "server", "location"]],
        memcached_next_upstream: [[Switch, String], "error timeout", ["http", "server", "location"]],
        memcached_next_upstream_timeout: [String, "0", ["http", "server", "location"]],
        memcached_next_upstream_tries: [Number, 0, ["http", "server", "location"]],
        memcached_pass: [String, , "location"],
        memcached_read_timeout: [String, "60s", ["http", "server", "location"]],
        memcached_send_timeout: [String, "60s", ["http", "server", "location"]],
        memcached_socket_keepalive: [Switch, false, ["http", "server", "location"]]
    }
}